package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class AppIdentityModelRowMapper implements RowMapper<AppIdentityModel> {
    @Override
    public AppIdentityModel mapRow(ResultSet rs, int rowNum) throws SQLException {
        AppIdentityModel appIdentityModel=new AppIdentityModel();
        appIdentityModel.setName(rs.getString("name"));
        appIdentityModel.setIdentity(rs.getString("identity"));
        appIdentityModel.setEmployment(rs.getString("employment"));
        appIdentityModel.setContacte(rs.getString("contacte"));
        appIdentityModel.setWechatphone(rs.getString("wechatphone"));
        appIdentityModel.setWechatstate(rs.getString("wechatstate"));
        appIdentityModel.setGridcode(rs.getString("gridcode"));
        appIdentityModel.setGridleader("gridleader");
        appIdentityModel.setShift(rs.getString("shift"));
        appIdentityModel.setShiftleader(rs.getString("shiftleader"));
        appIdentityModel.setPhoto(rs.getString("photo"));
        appIdentityModel.setDepartment(rs.getString("department"));
        appIdentityModel.setStreet(rs.getString("street"));
        appIdentityModel.setWorkright(rs.getString("workright"));
        return appIdentityModel;
    }
}
